package controller.parameterpanels;

import model.IManufacturingMethod;
import model.auxillary.ParameterList;
import model.auxillary.ParameterList.ParameterType;
import model.mwgde.IMWGDEInterface;
import view.CenterTabbedPane;
import view.mwgde.MaterialPanelMWGDE;
import controller.CtrInformationPanel;

/**
 * The class {@code CtrMaterialMWGDE} specifies the class
 * {@code CtrInputParameterPanel} to control the behavior of a material
 * input parameter panel for manufacturing methods of type MWGDE.
 * @author Oliver Eckstein
 *
 */
public class CtrMaterialMWGDE extends CtrInputParameterPanel {

	/**
     * To create a new {@code CtrMaterialMWGDE}.
     * @param manuMethod the manufacturing method connected to the controller.
     * @param infoPanelCtr the information panel controller.
     * @param parameterType the type of parameter whose panel gets created.
     * @param logoPath a path to an optional logo that is shown on the
     * parameter panel.
     */
	public CtrMaterialMWGDE(IManufacturingMethod manuMethod,
			CtrInformationPanel infoPanelCtr, ParameterType parameterType,
			String logoPath) {
		super(manuMethod, infoPanelCtr, parameterType, logoPath);		
	}

	@Override
	public void createView(String logoPath) {
		paramPanel = new MaterialPanelMWGDE(
				logoPath,
				CenterTabbedPane.parameterTypeToTab(parameterType),
				ParameterList.typeToString(parameterType),
				(IMWGDEInterface) manuMethod);
	}
	
}
